﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PCLawPrototype
{
    public partial class PULawyerRateFrm : Form
    {
        public PULawyerRateFrm()
        {
            InitializeComponent();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Data transferred to caller!");
            this.Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnHelp_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Help will be shown!");
        }

        private void btnAdd_Click(object sender, EventArgs e)
        {
            NewLawyerFrm newLawyerFrm = new NewLawyerFrm();
            newLawyerFrm.Show();
        }

        private void btnEdit_Click(object sender, EventArgs e)
        {
            LawyerInformation lawyer;
            if (lstClient.SelectedIndices[0] == 0)
            {
                //lawyer = new LawyerInformation(Common.Lawyer1);
            }
            else
            {
                //lawyer = new LawyerInformation(Common.Lawyer2);
            }
            //lawyer.Show();
        }

        private void btnRemove_Click(object sender, EventArgs e)
        {
            if (lstClient.SelectedItems.Count > 0)
                lstClient.Items.RemoveAt(lstClient.SelectedIndices[0]);
        }

        private void btnPrint_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Report will be printed!");
        }
    }
}
